<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php echo $this->Html->charset(); ?>
        <title>
            <?php echo $this->fetch('title'); ?>
        </title>
        <script type="text/javascript">
            //<![CDATA[
            var browser = navigator.userAgent;
            var browserRegex = /(Android|BlackBerry|IEMobile|Nokia|iP(ad|hone|od)|Opera M(obi|ini))/;
            var isMobile = false;
            if (browser.match(browserRegex)) {
                isMobile = true;
                addEventListener("load", function() {
                    setTimeout(hideURLbar, 0);
                }, false);
                function hideURLbar() {
                    window.scrollTo(0, 1);
                }
            }
            //]]>
        </script>

        <?php
        echo $this->fetch('meta');
        echo $this->Html->meta('icon');
        echo $this->Html->css('bootstrap');
        echo $this->Html->css('bootstrap-responsive');
        echo $this->Html->css('overwrite');
        echo $this->Html->css('fonts/stylesheet');
        echo $this->Html->css('flexslider');
        echo $this->Html->css('jcarousel');
        echo $this->Html->css('prettyPhoto');
        echo $this->Html->css('style');
        echo $this->Html->css('default');
        echo $this->Html->css('jsDatePick_ltr.min');
        echo $this->Html->css('jquery.validate.password');


        echo $this->Html->script('jquery');
        echo $this->Html->script('jquery.easing.1.3');
        echo $this->Html->script('bootstrap');
        echo $this->Html->script('navigation/jquery.scrollTo-1.4.2-min');
        echo $this->Html->script('navigation/jquery.smooth-scroll');
        echo $this->Html->script('navigation/waypoints.min');
        echo $this->Html->script('navigation/navbar');
        echo $this->Html->script('parallax/jquery.inview');
        echo $this->Html->script('parallax/nbw-parallax');
        echo $this->Html->script('flexslider/jquery.flexslider');
        echo $this->Html->script('flexslider/setting');
        echo $this->Html->script('prettyPhoto/jquery.prettyPhoto');
        echo $this->Html->script('prettyPhoto/setting');
        echo $this->Html->script('quicksand/jquery.quicksand');
        echo $this->Html->script('quicksand/setting');
        echo $this->Html->script('jcarousel/jquery.jcarousel.min');
        echo $this->Html->script('jcarousel/setting');
        echo $this->Html->script('ticker');
        echo $this->Html->script('totop/jquery.ui.totop');
        echo $this->Html->script('totop/setting');
        echo $this->Html->script('theme-option/jquery.cookie');
        echo $this->Html->script('theme-option/demosetting');
        echo $this->Html->script('validation');
        echo $this->Html->script('custom');

        echo $this->Html->script('jsDatePick.min.1.3');
        echo $this->Html->script('jquery.validate');
        echo $this->Html->script('jquery.validate.password');

        echo $this->fetch('script');
        ?>    
        <noscript>
            <?php echo $this->Html->css('fallback'); ?>
        </noscript>
        <?php echo $this->fetch('css'); ?>
    </head>
    <body>
        <?php echo $this->element('header'); ?>        
        <?php echo $this->fetch('content'); ?>
        <?php echo $this->element('footer'); ?>
    </body>
</html>